<%@ page import="aiball.PlayerStats" %>



<div class="fieldcontain ${hasErrors(bean: playerStatsInstance, field: 'player', 'error')} required">
	<label for="player">
		<g:message code="playerStats.player.label" default="Player" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="player" name="player.id" from="${aiball.Player.list()}" optionKey="id" required="" value="${playerStatsInstance?.player?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: playerStatsInstance, field: 'game', 'error')} required">
	<label for="game">
		<g:message code="playerStats.game.label" default="Game" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="game" name="game.id" from="${aiball.Gamecharts.list()}" optionKey="id" required="" value="${playerStatsInstance?.game?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: playerStatsInstance, field: 'ballContacts', 'error')} required">
	<label for="ballContacts">
		<g:message code="playerStats.ballContacts.label" default="Ball Contacts" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="ballContacts" required="" value="${fieldValue(bean: playerStatsInstance, field: 'ballContacts')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: playerStatsInstance, field: 'fieldsPassed', 'error')} required">
	<label for="fieldsPassed">
		<g:message code="playerStats.fieldsPassed.label" default="Fields Passed" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="fieldsPassed" required="" value="${fieldValue(bean: playerStatsInstance, field: 'fieldsPassed')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: playerStatsInstance, field: 'games', 'error')} required">
	<label for="games">
		<g:message code="playerStats.games.label" default="Games" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="games" required="" value="${fieldValue(bean: playerStatsInstance, field: 'games')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: playerStatsInstance, field: 'goals', 'error')} required">
	<label for="goals">
		<g:message code="playerStats.goals.label" default="Goals" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="goals" required="" value="${fieldValue(bean: playerStatsInstance, field: 'goals')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: playerStatsInstance, field: 'redCards', 'error')} required">
	<label for="redCards">
		<g:message code="playerStats.redCards.label" default="Red Cards" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="redCards" required="" value="${fieldValue(bean: playerStatsInstance, field: 'redCards')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: playerStatsInstance, field: 'yellowCards', 'error')} required">
	<label for="yellowCards">
		<g:message code="playerStats.yellowCards.label" default="Yellow Cards" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="yellowCards" required="" value="${fieldValue(bean: playerStatsInstance, field: 'yellowCards')}"/>
</div>

